package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 专题栏目
 * </p>
 *
 * @author stylefeng123
 * @since 2018-05-19
 */
@TableName("clm_column")
public class Column extends Model<Column> {

    private static final long serialVersionUID = 1L;

    @TableId("column_id")
    private Integer columnId;
    /**
     * 站点ID
     */
    @TableField("site_id")
    private String siteId;
    /**
     * 栏目ID
     */
    @TableField("column_code")
    private String columnCode;
    /**
     * 栏目名称
     */
    @TableField("column_name")
    private String columnName;
    /**
     * 创建时间
     */
    
    @TableField("create_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;
    /**
     * 栏目描述
     */
    @TableField("column_desc")
    private String columnDesc;
    /**
     * 父id
     */
    private Integer pId;
    /**
     * 所有父ids
     */
    private String pIds;
    /**
     * 修改时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("update_date")
    private Date updateDate;
    @TableField("create_user")
    private String createUser;
    /**
     * 修改人
     */
    @TableField("update_user")
    private String updateUser;
    /**
     * 是否可编辑 0-否1-是
     */
    @TableField("be_edit")
    private String beEdit;
    /**
     * 是否删除：0-正常 1-删除
     */
    @TableField("be_delete")
    private String beDelete;
    /**
     * 排序字段
     */
    private Integer num;
    
    /**
     * 栏目横图
     */
    @TableField("heng_img")
    private String hengImg;
    
    /**
     * 栏目竖图
     */
    @TableField("shu_img")
    private String shuImg;
    
    /**
     * 是否置顶
     */
    @TableField("be_top")
    private String beTop;
    
    /**
     * 状态 0-下架 1-上架
     */
    private String status;
    
    

    public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getBeTop() {
		return beTop;
	}

	public void setBeTop(String beTop) {
		this.beTop = beTop;
	}

	public String getHengImg() {
		return hengImg;
	}

	public void setHengImg(String hengImg) {
		this.hengImg = hengImg;
	}

	public String getShuImg() {
		return shuImg;
	}

	public void setShuImg(String shuImg) {
		this.shuImg = shuImg;
	}

	public Integer getColumnId() {
        return columnId;
    }

    public void setColumnId(Integer columnId) {
        this.columnId = columnId;
    }

    public String getSiteId() {
        return siteId;
    }

    public void setSiteId(String siteId) {
        this.siteId = siteId;
    }

    public String getColumnCode() {
        return columnCode;
    }

    public void setColumnCode(String columnCode) {
        this.columnCode = columnCode;
    }

    public String getColumnName() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName = columnName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getColumnDesc() {
        return columnDesc;
    }

    public void setColumnDesc(String columnDesc) {
        this.columnDesc = columnDesc;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getpIds() {
        return pIds;
    }

    public void setpIds(String pIds) {
        this.pIds = pIds;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getBeEdit() {
        return beEdit;
    }

    public void setBeEdit(String beEdit) {
        this.beEdit = beEdit;
    }

    public String getBeDelete() {
        return beDelete;
    }

    public void setBeDelete(String beDelete) {
        this.beDelete = beDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.columnId;
    }
    

    public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	@Override
	public String toString() {
		return "Column [columnId=" + columnId + ", siteId=" + siteId
				+ ", columnCode=" + columnCode + ", columnName=" + columnName
				+ ", createDate=" + createDate + ", columnDesc=" + columnDesc
				+ ", pId=" + pId + ", pIds=" + pIds + ", updateDate="
				+ updateDate + ", createUser=" + createUser + ", updateUser="
				+ updateUser + ", beEdit=" + beEdit + ", beDelete=" + beDelete
				+ ", num=" + num + ", hengImg=" + hengImg + ", shuImg="
				+ shuImg + ", beTop=" + beTop + ", status=" + status + "]";
	}


	
	
}
